import request from '@/utils/requestH2'

/* 首页页面 */

// 首页展示数据
export function selHomeMessageApi(id) {
  return request({
    url: `/homeManage/home/selHomeMessage/${id}`,
    method: 'GET'
  })
}

// 根据id显示代办事项
export function selWaitMessageApi(params, id) {
  return request({
    url: `/homeManage/home/selWaitMessage/${id}`,
    method: 'GET',
    params
  })
}

// 根据id阅读代办事项
export function updateWaitMessageByIdApi(id) {
  return request({
    url: `/homeManage/home/updateWaitMessageById/${id}`,
    method: 'PUT'
  })
}

// 实时数据展示
export function selRealTimeMessageApi(id) {
  return request({
    url: `/homeManage/home/selRealTimeMessage/${id}`,
    method: 'GET'
  })
}

// 首页图表数据展示
export function selChartMessageApi(id) {
  return request({
    url: `/homeManage/home/selChartMessage/${id}`,
    method: 'GET'
  })
}
